package com.xhtt.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * <p>
 * app登陆记录
 * </p>
 *
 * @author feipc
 * @since 2019-05-30
 */
@Data
public class SysUserAppLog {

    private static final long serialVersionUID = 1L;
    public SysUserAppLog(){}

    public SysUserAppLog(Integer userId, String padNo, LocalDateTime loginDate) {
        this.userId = userId;
        this.padNo = padNo;
        this.loginDate = loginDate;
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    /**
     * pad号
     */
    private String padNo;

    /**
     * 登录时间
     */
    private LocalDateTime loginDate;

}
